
/** 表格表头 */
export const tableColumns = (t: (msg:string)=>string) => ([

  {
    prop: 'user',
    label: '用户',
    minWidth: 100,
    fixed: 'left'
  },
  {
    prop: 'log_info',
    label: '类型',
    minWidth: 100,
    fixed: 'left',
    format: (val:any) => {
      return val.type
    }
  },
  {
    prop: 'log_info',
    label: '时间',
    minWidth: 100,
    format: (val:any) => {
      const m = parseInt(Number(val.playtime_number)/60 + '')
      const s = val.playtime_number%60
      return `${m}分${s}秒`
    }
  },
  {
    prop: 'ip',
    label: 'IP地址',
    minWidth: 100,
  },
  {
    prop: 'created_at',
    label: '上报时间',
    minWidth: 180,
    format: 'date|YYYY-MM-DD HH:mm:ss'
  },
]);

/** 表格搜索表单 */
export const tableSearchFormItems = (t: (msg:string)=>string) => ([]);
